<template>
    <div class="tabs">
        <router-link v-for="item in tab" :key="item" :to="item.to"
            :style="{ 'font-family': $i18n.locale === 'en' ? 'Helvetica-Bold, Helvetica' : '' }">{{ item.name
            }}</router-link>
    </div>
</template>

<script>
export default {
    props: ["tab"]
}
</script>


<style lang="less" scoped>
.tabs {
    display: flex;
    align-items: center;

    a {
        height: 0.96rem;
        font-size: 0.59rem;
        font-family: 'IdeaFonts-DianHei-DEJ', 'IdeaFonts-DianHei';
        font-weight: normal;
        color: #212121;
        line-height: 0.96rem;
        margin-right: 2.99rem;
        position: relative;
    }

    .router-link-active {
        font-family: 'IdeaFonts-DianHei-FEJ', 'IdeaFonts-DianHei';
        color: #7709CC;
    }

    .router-link-active::after {
        content: "";
        width: 1.6rem;
        height: 0.05rem;
        background: #7709CC;
        position: absolute;
        bottom: -0.43rem;
        left: 50%;
        transform: translateX(-50%);
    }
}
</style>